import http from '@/utils/http'
const zlPrivateStudyService = {
  // 获取用户权限
  getPower(params) {
    return http.get('/ban/study_registration/user_msg', params)
  },
  // 获取用户信息
  getStudyIndex(params) {
    return http.get('/ban/private_study/center/index', params)
  },
  //获取新版私教学习中心入学报到信息
  getPrivateInformation(params) {
    return http.get('/ban/private_study/register/information_fill', params)
  },
  // 提交入学信息
  submitPrivateInformation(params) {
    return http.post('/ban/private_study/register/information_fill', params)
  },
  //学习内容 - 阶段到大纲的列表树
  getOutlineTree(params) {
    return http.post(
      '/ban/private_study/study_content/phase_outline_list_tree',
      params
    )
  },
  //学习内容 - 大纲目录列表
  getOutlineCatalogList(params) {
    return http.post(
      '/ban/private_study/study_content/outline_catalog_list',
      params
    )
  },
  //学习内容 - 大纲任务列表树
  getOutlineTaskList(params) {
    return http.post(
      '/ban/private_study/study_content/outline_task_list_tree',
      params
    )
  },
  //学习内容 - 大纲目录任务列表树
  getCatalogList(params) {
    return http.post(
      '/ban/private_study/study_content/outline_catalog_task_list_tree',
      params
    )
  },
  // 记录最后一次学习任务
  recordLastStudyTask(params) {
    return http.post(
      '/ban/private_study/study_content/record_last_study',
      params
    )
  },
  // 获取班主任信息
  getTeacherInfo(params) {
    return http.get('/ban/private_study/center/teacher_msg', params)
  },
  // 获取题库列表
  getQuestionBankList(params) {
    return http.post(
      '/ban/private_study/question_bank/question_bank_list',
      params
    )
  },
  // 题库的目录和试卷结构
  getQuestionBankTree(params) {
    return http.post(
      '/ban/private_study/question_bank/question_bank_tree',
      params
    )
  },
  // 获取大纲下所有老师
  getOutlineTeachers(params) {
    return http.get('/ban/private_study/center/outline_teachers', params)
  },
  // 用户切换默认老师
  changeOutlineTeacher(params) {
    return http.post('/ban/private_study/center/change_teacher', params)
  },
  // 提交做题结果后端统计
  submitQuestionRecord(params) {
    return http.post('/ban/private_study/question_bank/add_record', params)
  },
  // 获取错题本数据
  getWrongList(params) {
    return http.get('/ban/private_study/question_bank/wrong', params)
  },
  // 获取收藏数据
  getCollectList(params) {
    return http.get('/ban/private_study/question_bank/collect', params)
  },
  // 删除收藏记录
  deleteExamCollect(params) {
    return http.post('/storage/question/delete_collect', params)
  },
  // 删除错题
  deleteWrong(params) {
    return http.post('/storage/question/delete_wrong', params)
  },
  // -------学习计划-----start--------
  // 用户的任务
  getUserTaskList(data) {
    return http.post('/ban/private_study/student_plan/user_tasks_v1', data)
  },
  // 权限下可用阶段列表
  getUserPhaseList(data) {
    return http.post('/ban/private_study/student_plan/user_phases', data)
  },
  // 选择任务列表
  getTaskListAll(data) {
    return http.post('/ban/private_study/student_plan/user_select_tasks', data)
  },
  // 创建用户任务
  addScheduleTasks(data) {
    return http.post(
      '/ban/private_study/student_plan/create_schedule_tasks',
      data
    )
  },
  // 创建用户任务
  getDateTask(data) {
    return http.post('/ban/private_study/student_plan/date_tasks', data)
  },
  //删除用户任务
  deleteUserTask(data) {
    return http.post('/ban/private_study/student_plan/delete_task', data)
  },
  // -------学习计划-----end--------

  // -------学习进度-----start--------
  // 完课-大纲列表
  getComplishOutlineList(data) {
    return http.post('/ban/private_study/student_completion/outline_list', data)
  },
  // 完课-目录列表
  getCourseCatlogList(data) {
    return http.post(
      '/ban/private_study/student_completion/outline_catalog_list',
      data
    )
  },
  // 完课-目录下的课程列表
  getCourseCatlogDetailList(data) {
    return http.post(
      '/ban/private_study/student_completion/catalog_course_list',
      data
    )
  },
  // 完课-无目录课程列表
  getCourseNoCatlogDetailList(data) {
    return http.post(
      '/ban/private_study/student_completion/teacher_course_list',
      data
    )
  },
  // 完课-课节列表
  getComplishSectionList(data) {
    return http.post('/ban/private_study/student_completion/section_list', data)
  },
  // 作业-大纲列表
  getWorkOutlineList(data) {
    return http.post('/ban/private_study/student_work/outline_list', data)
  },
  // 作业-目录列表
  getWorkCatalogList(data) {
    return http.post(
      '/ban/private_study/student_work/outline_catalog_list',
      data
    )
  },
  // 作业-目录下的任务列表
  getWorkCatlogDetailList(data) {
    return http.post('/ban/private_study/student_work/catalog_task_list', data)
  },
  // 作业-无目录时-大纲下的任务列表
  getWorkNoCatlogDetailList(data) {
    return http.post('/ban/private_study/student_work/outline_task_list', data)
  },
  // 作业-题库目录列表
  getQuestionCatalogList(data) {
    return http.post('/ban/private_study/student_work/task_item_list', data)
  }
  // -------学习进度-----end--------
}
export default zlPrivateStudyService
